<?php /* Smarty version 2.6.26, created on 2015-06-01 16:43:00
         compiled from D:/www/wamp/www/0423/0527+WenDa/WenDa/index/View/index/Search_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'D:/www/wamp/www/0423/0527 WenDa/WenDa/index/View/index/Search_index.html', 38, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title><?php echo $this->_tpl_vars['webName']; ?>
</title>
	<meta name="keywords" content="<?php echo $this->_tpl_vars['KEYWORDS']; ?>
"/>
	<meta name="description" content="<?php echo $this->_tpl_vars['DISCRIPTION']; ?>
"/>
	<link rel="stylesheet" href="<?php echo @__PUBLIC__; ?>
/Css/common.css" />
	<script type="text/javascript" src='<?php echo @__PUBLIC__; ?>
/Js/jquery-1.7.2.min.js'></script>
	<link rel="stylesheet" href="<?php echo @__PUBLIC__; ?>
/Css/index.css" />
</head>
<body>
	<!-- 搜索顶部 -->
	<div class="search_top">
		<div class="sealeft">
			<a href="<?php echo @__ROOT__; ?>
"><img src="<?php echo @__PUBLIC__; ?>
/images/t0150f9b7bd1b41d84e.png" alt="" /></a>
			<a href="http://www.houdunwang.com">后盾顶尖PHP培训</a>
			<a href="http://www.houdunwang.com">后盾网</a>
		</div>

	</div>
	<!-- 搜索顶部结束 -->
	<!-- 搜索框 -->
	<div class="search_box">
		<form action="<?php echo @__ROOT__; ?>
/index.php?c=search" method='post'>
			<input type="text" name="searchWord" class="searchInput"/>
			<input type="submit" value="搜索答案" class="sub"/>
			<a href="<?php echo @__ROOT__; ?>
/index.php?c=ask">我要提问</a>
		</form>
	</div>
	<!-- 搜索框结束 -->
	<!-- 搜索内容 -->
	<div class="searcont">
	<?php unset($this->_sections['search']);
$this->_sections['search']['loop'] = is_array($_loop=$this->_tpl_vars['searchValue']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['search']['name'] = 'search';
$this->_sections['search']['show'] = true;
$this->_sections['search']['max'] = $this->_sections['search']['loop'];
$this->_sections['search']['step'] = 1;
$this->_sections['search']['start'] = $this->_sections['search']['step'] > 0 ? 0 : $this->_sections['search']['loop']-1;
if ($this->_sections['search']['show']) {
    $this->_sections['search']['total'] = $this->_sections['search']['loop'];
    if ($this->_sections['search']['total'] == 0)
        $this->_sections['search']['show'] = false;
} else
    $this->_sections['search']['total'] = 0;
if ($this->_sections['search']['show']):

            for ($this->_sections['search']['index'] = $this->_sections['search']['start'], $this->_sections['search']['iteration'] = 1;
                 $this->_sections['search']['iteration'] <= $this->_sections['search']['total'];
                 $this->_sections['search']['index'] += $this->_sections['search']['step'], $this->_sections['search']['iteration']++):
$this->_sections['search']['rownum'] = $this->_sections['search']['iteration'];
$this->_sections['search']['index_prev'] = $this->_sections['search']['index'] - $this->_sections['search']['step'];
$this->_sections['search']['index_next'] = $this->_sections['search']['index'] + $this->_sections['search']['step'];
$this->_sections['search']['first']      = ($this->_sections['search']['iteration'] == 1);
$this->_sections['search']['last']       = ($this->_sections['search']['iteration'] == $this->_sections['search']['total']);
?>
		<ul>
			<li> <a href="<?php echo @__ROOT__; ?>
/index.php?c=show&cid=<?php echo $this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['cid']; ?>
&asid=<?php echo $this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['asid']; ?>
 " class="title"><?php echo $this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['askcontent']; ?>
</a> </li>
			<li><?php echo $this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['content']; ?>
</li>
			<li class="time"><span><?php echo $this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['title']; ?>
 - <?php echo $this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['answer']; ?>
个回答</span> - 提问时间: <?php echo ((is_array($_tmp=$this->_tpl_vars['searchValue'][$this->_sections['search']['index']]['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y/%m/%e %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y/%m/%e %H:%M:%S")); ?>
</li>
		</ul>
	<?php endfor; endif; ?>
		

	</div>
	<!-- 搜索内容结束 -->
	}

<!-- 底部 -->
	<div id='bottom'>
		<p><?php echo $this->_tpl_vars['COPY']; ?>
</p>
		<p><?php echo $this->_tpl_vars['RECORD']; ?>
</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->